package com.weiyuwqj.server.service.asset.impl;

import java.util.List;
import java.util.Map;

import com.weiyuwqj.api.constant.Message;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.weiyuwqj.api.model.SysAssetPicture;
import com.weiyuwqj.api.service.SysAssetPictureService;
import com.weiyuwqj.server.mapper.SysAssetPictureMapper;
import com.weiyuwqj.server.service.base.BaseServiceImpl;

/**
 * 
 * @className:SysAssetCompanyServiceImpl	
 * @Description: 资产方图片serviceimpl
 * @author cx
 * @date:2017年3月25日上午10:42:27 
 *
 */
@Service("sysAssetPictureService")
public class SysAssetPictureServiceImpl extends BaseServiceImpl<SysAssetPicture> implements SysAssetPictureService{

	@Autowired
	private SysAssetPictureMapper sysAssetPictureMapper;
	
	@Override
	public List<SysAssetPicture> getList(final Integer productId) {
		return this.sysAssetPictureMapper.getList(productId);
	}

	@Override
	public SysAssetPicture findById(final Integer id){
		return this.sysAssetPictureMapper.findById(id);
	}

	@Override
	public Map deleteByProductId(Integer productId) {
		this.sysAssetPictureMapper.deleteByProductId(productId);
		return Message.OK;
	}

}
